import { toast } from "react-toastify";

//暂时废弃
export default function notify({ component = null, content, option = null }) {
  console.log(content, option);

  if (option == null) {
    if (component == null) {
      toast(content);
    } else {
      toast(component);
    }
  } else {
    if (component == null) {
      toast(content, option);
    } else {
      toast(component, option);
    }
  }
}
